using System;
using System.Collections.Generic;
using System.Text;

namespace Decav.Gatsb.SuperPagesParser
{
    class Program
    {
        private const string OutputDir = "c:\\users\\andre\\desktop";
        static void Main(string[] args)
        {
            // clubs
            SuperPagesAdapter adapt = new SuperPagesAdapter("http://api.superpages.com/xml/search?SRC=Andre&C=clubs&PP=L&MC=1&F=1&L=New+York+NY&R=A&RC=1&CP=Arts+%26+Entertainment%5EClubs+%26+Nightlife", OutputDir, LocationType.Bar);
            //adapt.Run();

            // Restaurants
            adapt = new SuperPagesAdapter("http://api.superpages.com/xml/search?SRC=Andre&C=restaurants&PP=L&L=New+York+NY&R=A&MC=1&F=1&CP=Food+%26+Dining%5ERestaurants%5E", OutputDir, LocationType.Restaurant);
            adapt.Run();
        }
    }
}
